import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const JKTURL = BASEURL.JKTURL
const commpleApi = {
    /**查询所有城市 */
    queryallCity() {
        let url = JKTURL + "/user/city"
        return myaxios.get(url)
    },
    /**查询所有驾照类型 */
    queryLicensetype() {
        let url = JKTURL + '/driverschool/license'
        return myaxios.get(url)
    },
    /**查询所有学科类型 */
    querySubjectstype() {
        let url = JKTURL + '/coach/subjects'
        return myaxios.get(url)
    },
    /**
     * 查询男女生人数
     */
    querysexcount() {
        let url = JKTURL + '/index/sexcount'
        return myaxios.get(url)
    },
    /**
     * 查询城市分布
     */
    querycitycount() {
        let url = JKTURL + '/index/citycount'
        return myaxios.get(url)
    },
    /**
     * 查询驾校评分分布
     */
    querygrade() {
        let url = JKTURL + '/index/grade'
        return myaxios.get(url)
    },

}
export default commpleApi;